package com.zll.test;

import java.util.Scanner;
import java.util.TreeSet;

public class 明明的随机数 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int length = scanner.nextInt();
        TreeSet<Integer> ts = new TreeSet<>();
        for(int i=0;i<length;i++){
            int num = scanner.nextInt();
            ts.add(num);
        }
        for (Integer t : ts) {
            System.out.println(t);
        }
    }
}
